package com.org.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 调度任务mvc配置
 */
@Controller
@RequestMapping(value = "job")
public class JobController {

    /**
     * cron表达式列表
     * @return
     */
    @RequestMapping(value = "/cron/list.html")
    public String ToCronList() {
        return "/job/cron/list";
    }

    /**
     * cron表达式详情
     *
     * @return
     */
    @RequestMapping(value = "/cron/detail.html")
    public String ToCronDetail() {
        return "/job/cron/detail";
    }

    /**
     * 调度任务列表
     *
     * @return
     */
    @RequestMapping(value = "/task/list.html")
    public String ToTaskList() {
        return "/job/task/list";
    }

    /**
     * 调度任务详情
     *
     * @return
     */
    @RequestMapping(value = "/task/detail.html")
    public String ToTaskDetail() {
        return "/job/task/detail";
    }

    /**
     * 调度日志列表
     *
     * @return
     */
    @RequestMapping(value = "/log/list.html")
    public String ToLogList() {
        return "/job/log/list";
    }

    /**
     * 数据库备份列表
     *
     * @return
     */
    @RequestMapping(value = "dev/list.html")
    public String ToBackupDataConfigList() {
        return "/job/dev/list";
    }

    /**
     * 数据库备份详情
     *
     * @return
     */
    @RequestMapping(value = "dev/detail.html")
    public String ToBackupDataConfigDetail() {
        return "/job/dev/detail";
    }

}
